package com.example.consumer.listeners;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
//@RocketMQMessageListener(topic = "test",consumerGroup = "consumer-group1")
public class RocketMQListener2 implements RocketMQListener<String> {
    @Override
    public void onMessage(String message) {
        System.out.println("RocketMQListener2: " + message);
    }
}
